Skip to content

Conversation

@dormi
Copy link
Contributor

@dormi dormi commented Jun 28, 2018

Use Nokogiri::XML::Reader to try to optimize memory usage when importing large files:
https://www.rubydoc.info/gems/nokogiri/Nokogiri/XML/Reader

doc = Nokogiri::XML( file_content )
logger.info{'Done.'}

if doc.xpath('/NessusClientData_v2/Report').empty?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're loosing important validation with this change, no?

Base automatically changed from master to main January 29, 2021 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants